<template>
  <div slot="header" class="clearfix">
    <span>所有区域</span>
    <el-button
      class="filter-item"
      size="mini"
      style="float: right;padding: 4px 10px"
      type="primary"
      icon="el-icon-plus"
      @click="$refs.form.dialog = true">新增
    </el-button>
    <eForm ref="form" :is-add="true" :device_this="device_this"/>
  </div>
</template>

<script>
  import eForm from './form'
  export default {
    components: {eForm},
    props: {
      query: {
        type: Object,
        required: true
      },
      device_this: {
        type: Object,
        required: true
      }
    },
    data() {
      return {}
    },
    methods: {
    }
  }
</script>
